home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / glibc108.zip / glibc108 / mach / err_ipc.sub < prev    next >
Text File  |  1992-10-06  |  3KB  |  107 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1991,1990,1989,1988,1987 Carnegie Mellon University
  4.  * All Rights Reserved.
  5.  * 
  6.  * Permission to use, copy, modify and distribute this software and its
  7.  * documentation is hereby granted, provided that both the copyright
  8.  * notice and this permission notice appear in all copies of the
  9.  * software, derivative works or modified versions, and any portions
  10.  * thereof, and that both notices appear in supporting documentation.
  11.  * 
  12.  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS 
  13.  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
  14.  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  15.  * 
  16.  * Carnegie Mellon requests users of this software to return to
  17.  * 
  18.  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
  19.  *  School of Computer Science
  20.  *  Carnegie Mellon University
  21.  *  Pittsburgh PA 15213-3890
  22.  * 
  23.  * any improvements or extensions that they make and grant Carnegie the
  24.  * rights to redistribute these changes.
  25.  */
  26. /*
  27.  * HISTORY
  28.  * $Log:    err_ipc.sub,v $
  29.  * Revision 2.2  92/01/16  00:08:40  rpd
  30.  *     Moved from user collection to mk collection.
  31.  * 
  32.  * Revision 2.2  91/03/27  16:05:16  mrt
  33.  *     First checkin
  34.  * 
  35.  * 
  36.  */
  37. /*
  38.  *    File:    err_ipc.sub
  39.  *    Author:    Douglas Orr, Carnegie Mellon University
  40.  *    Date:    Mar, 1988
  41.  *
  42.  *    Definitions of error strings for original IPC
  43.  */
  44.  
  45. static char * err_codes_send[] = {
  46.     "(ipc/send) unknown error",        /* -100 */
  47.     "(ipc/send) invalid memory",        /* -101 */
  48.     "(ipc/send) invalid port",        /* -102 */
  49.     "(ipc/send) timed out",            /* -103 */
  50.     "(ipc/send) unused error",        /* -104 */
  51.     "(ipc/send) will notify",        /* -105 */
  52.     "(ipc/send) notify in progress",    /* -106 */    
  53.     "(ipc/send) kernel refused message",    /* -107 */
  54.     "(ipc/send) send interrupted",        /* -108 */
  55.     "(ipc/send) send message too large",    /* -109 */
  56.     "(ipc/send) send message too small",    /* -110 */
  57.     "(ipc/send) message size changed while being copied",    /* -111 */
  58. };
  59.  
  60. static char * err_codes_rcv[] = {
  61.     "(ipc/rcv) unknown error",            /* -200 */
  62.     "(ipc/rcv) invalid memory",            /* -201 */
  63.     "(ipc/rcv) invalid port",            /* -202 */
  64.     "(ipc/rcv) receive timed out",            /* -203 */
  65.     "(ipc/rcv) message too large",            /* -204 */
  66.     "(ipc/rcv) no space for message data",        /* -205 */
  67.     "(ipc/rcv) only sender remaining",        /* -206 */
  68.     "(ipc/rcv) receive interrupted",        /* -207 */
  69.     "(ipc/rcv) port receiver changed or port became enabled", /* -208 */
  70. };
  71.  
  72. static char     * err_codes_mig[] = {
  73.     "(ipc/mig) type check failure in message interface",    /* 0 (-300) */
  74.     "(ipc/mig) wrong return message ID",            /* 1 */
  75.     "(ipc/mig) server detected error",            /* 2 */
  76.     "(ipc/mig) bad message ID",                /* 3 */
  77.     "(ipc/mig) server found wrong arguments",        /* 4 */
  78.     "(ipc/mig) no reply should be sent",            /* 5 */
  79.     "(ipc/mig) server raised exception",            /* 6 */
  80.     "(ipc/mig) user specified array not large enough for return info",    /* 7 */
  81. };
  82.  
  83. /*    err_ipc subsystems          */
  84. static struct error_subsystem err_ipc_sub[] = {
  85.     /* ipc/0; */
  86.     {
  87.         "(ipc/send)",
  88.         errlib_count(err_codes_send),
  89.         err_codes_send,
  90.     },
  91.     /* ipc/1; */
  92.     {
  93.         "(ipc/rcv)",
  94.         errlib_count(err_codes_rcv),
  95.         err_codes_rcv,
  96.  
  97.     },
  98.     /* ipc/2 */
  99.     {
  100.         "(ipc/mig)",
  101.         errlib_count(err_codes_mig),
  102.         err_codes_mig,
  103.     },
  104.  
  105. };
  106.  
  107.